//
// Created by Administrator on 2021/10/20.
//

#ifndef PARTJOB_C___ANYLIST_H
#define PARTJOB_C___ANYLIST_H
#include "node.h"
#include "iostream"
using namespace std;
class AnyList
{
    // friend functions...
    friend ostream& operator << (ostream&,const AnyList&);
public:
    AnyList();
    AnyList(const AnyList &);
    void swapValues(AnyList &);
    void insertSum(const AnyList &);

// member functions...
    void add(Node *node);

    bool operator==(const AnyList &rhs) const;

private:
    Node *first{}; //pointer to point to the first node in the list
    int count; //keeps track of number of nodes in the list
};
#endif //PARTJOB_C___ANYLIST_H
